﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QiHe.Office.Tool;
using System.Net;
using System.IO;
using System.Web;

namespace QiHe
{
    public partial class Login : Form
    {
        DataSet DeptList; 
        public Login()
        {

      
                InitializeComponent();
                MedEQ.Service1 sop = new MedEQ.Service1();
                DeptList = sop.Serv_HSP_List();

             comboBox1.DataSource = DeptList.Tables[0];
             comboBox1.DisplayMember = "Name";
             comboBox1.ValueMember = "ID";

        }

        private void button1_Click(object sender, EventArgs e)
        {
            /*MedEQ.Service1 sop = new MedEQ.Service1();
            string result = sop.Get_HSPID_By_Name(comboBox1.Text.ToString().Trim());
            if (result == "noHSP")
                MessageBox.Show("无此医院");
            else
            {
                if (textBox2.Text.ToString().Trim() == "123")
                {
                    DataTemp.HSPID = result;
                    DataTemp.HSPName = comboBox1.Text.ToString().Trim();

                    Form1 f = new Form1();
                    f.Show();

                }
                else
                    MessageBox.Show("密码错误");

            }
             * */
            Form1 f = new Form1();
            f.ShowDialog();

        }
    }
}
